﻿using System.Configuration;

namespace Tilver.Configuration.Logging
{
    public class CustomAppenderCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new CustomAppenderElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((CustomAppenderElement)element).Name;
        }

        public new CustomAppenderElement this[string name]
        {
            get
            {
                return (CustomAppenderElement)BaseGet(name);
            }
        }
    }
}
